﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchCatagory.ascx.vb"
    Inherits="WebForm_ManageCatagory_SearchCatagory" %>
    
<div style="background-color: #351D26">
<FIELDSET ID="FIELDSET1" style="border-color:#4E333B" runat="server">
<LEGEND class="white2">
    <asp:Literal ID="Literal1" runat="server" Text="Query" />
</LEGEND>
    <table width="100%">
        <tr>
            <td align="right" width="150px">
                <asp:Label ID="lblDivision" runat="server" meta:resourcekey="lblDivision"></asp:Label>
            </td>
            <td align="left">
                <asp:DropDownList ID="ddlDivision" AutoPostBack="true" runat="server">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvDivision" SetFocusOnError="true" runat="server"
                    Display="None" ControlToValidate="ddlDivision" meta:resourcekey="rfvDivision"
                    ValidationGroup="vAdd"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" width="150px">
                <asp:Label ID="lblCatagoryLevel" runat="server" meta:resourcekey="lblCatagoryLevel"></asp:Label>
            </td>
            <td align="left">
                <asp:DropDownList ID="ddlCatagoryLevel" AutoPostBack="true" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblNewDescription" runat="server" meta:resourcekey="lblNewDescription"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="txtNewDescription" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvNewDescription" runat="server" Display="None"
                    ControlToValidate="txtNewDescription" meta:resourcekey="rfvNewDescription" SetFocusOnError="true"
                    ValidationGroup="vAdd"></asp:RequiredFieldValidator>
                <asp:Button ID="btnAdd" runat="server" meta:resourcekey="btnAdd" ValidationGroup="vAdd" />
                <ajaxToolkit:ConfirmButtonExtender ID="cbAdd" runat="server" TargetControlID="btnAdd"
                    meta:resourcekey="cbAdd">
                </ajaxToolkit:ConfirmButtonExtender>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                    ShowSummary="false" ValidationGroup="vAdd" />
            </td>
        </tr>
    </table>
                    </FIELDSET>
<br />
                    <FIELDSET ID="FIELDSET2" style="border-color:#4E333B" runat="server">
                    <LEGEND class="white2">
                        <asp:Literal ID="Literal2" runat="server" Text="List" />
                    </LEGEND>
    <table width="100%">
        <tr>
            <td colspan="2">
                <My:MyGridView ID="gv" runat="server" SkinID="pager" meta:resourcekey="gv" AllowPaging="True"
                    AllowHoverSelect="False" DataKeyNames="Division,HeaderID" AllowHoverEffect="True" MySortDirection="Ascending"
                    AutoGenerateColumns="False">
                    <Columns>
                        <asp:BoundField DataField="Division" Readonly="true" ItemStyle-HorizontalAlign="Center"
                            meta:resourcekey="bfDivision" />
                        <asp:TemplateField meta:resourcekey="bfDescription">
                            <itemtemplate>
                        <%#Eval("NewDescription")%>
                        </itemtemplate>
                            <edititemtemplate>
                                <asp:TextBox ID="txtNewDescriptionEdit" Text='<%#Eval("NewDescription")%>' runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvNewDescriptionEdit" runat="server" Display="None" ControlToValidate="txtNewDescriptionEdit"
                    meta:resourcekey="rfvNewDescription" SetFocusOnError="true" ValidationGroup="vEditAdd"></asp:RequiredFieldValidator>
                        </edititemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <itemtemplate>
                        <asp:LinkButton id="lknEdit" SkinID="Infor" meta:resourcekey="lknEdit" runat="server" CommandName="Edit"></asp:LinkButton> 
                         &nbsp;
                         <asp:LinkButton id="lknDelete" SkinID="Infor" meta:resourcekey="lknDelete" runat="server" CommandName="Delete"></asp:LinkButton> 
                        <ajaxToolkit:ConfirmButtonExtender id="cbDelete" meta:resourcekey="cbDelete" runat="server" TargetControlID="lknDelete">
                        </ajaxToolkit:ConfirmButtonExtender> 
                    </itemtemplate>
                            <edititemtemplate>
                           <asp:LinkButton id="lknSave" SkinID="Infor" meta:resourcekey="lknSave" ValidationGroup="vEditAdd" runat="server" CommandName="Update"></asp:LinkButton> 
                         &nbsp;
                         <asp:LinkButton id="lknCancel" SkinID="Infor" meta:resourcekey="lknCancel" runat="server" CommandName="Cancel"></asp:LinkButton> 

                                    <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="lknSave"
                    meta:resourcekey="cbSave">
                </ajaxToolkit:ConfirmButtonExtender>
                <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="True"
                    ShowSummary="false" ValidationGroup="vEditAdd" />

                    </edititemtemplate>
                        </asp:TemplateField>
                    </Columns>
                </My:MyGridView>
            </td>
        </tr>
    </table>
                    </FIELDSET>
</div>
